package com.dingxin.ship_together_api.service;

import cn.dev33.satoken.util.SaResult;
import com.dingxin.ship_together_api.entity.OrderInfo;
import com.wechat.pay.java.service.payments.jsapi.model.PrepayWithRequestPaymentResponse;

import javax.servlet.http.HttpServletRequest;

/**
 * Author: ctj
 * Date: 2023-01-09
 * Time: 10:41
 */
public interface WxPayService {
    /**
     * 生成微信支付预支付id
     * @return
     */
    PrepayWithRequestPaymentResponse genPrePayInfo(OrderInfo orderInfo);

    /**
     * 微信支付回调
     * @return
     */
    SaResult callback(HttpServletRequest request) throws Exception ;
}
